package tiandang.core.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tiandang.core.dao.PromoProductMapper;
import tiandang.core.model.PromoProduct;
import tiandang.core.service.PromoProductService;

import java.util.List;

@Service
public class PromoProductServiceImpl implements PromoProductService {

  @Autowired
  private PromoProductMapper promoProductMapper;

  @Override
  public List<PromoProduct> getListByPromoId(Integer promoId) {
    return promoProductMapper.getListByPromoId(promoId);
  }

  @Override
  public List<PromoProduct> getListByPromoIdList(List<Integer> promoIdList) {
    return promoProductMapper.getListByPromoIdList(promoIdList);
  }

  @Override
  public void updateSequenceById(Integer id, Integer sequence) {
    promoProductMapper.updateSequenceById(id, sequence);
  }

}
